package com.ndp.fb.rdb.model;
import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.Id;
import com.ndp.fb.rdb.annotation.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * id
 user_id
 email
 first_name
 gender
 last_name
 link
 locale
 name
 timezone
 updated_time
 verified
 access_token
 fb_user_id
 is_invalid
 */
@Setter
@Getter
@NoArgsConstructor
@Table("fb_user")
public class FbUser implements Serializable {
    private static final long serialVersionUID = -6576065081793668269L;
    @Id
    private Long id;
    //user_id
    private String userId;
    //fb_user_id
    private Long fbUserId;
    //email
    private String email;
    //first_name
    private String firstName;
    //gender
    private String gender;
    //last_name
    private String lastName;
    //link
    private String link;
    //locale
    private String locale;
    //name
    private String name;
    @Column("timeZone")
    private String timeZone;
    @Column(type = ColumnType.Time)
    private Date updatedTime;
    //access_token
    private String accessToken;
    //verified
    private Integer verified;
    //is_invalid
    private Integer isInvalid;
}
